<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="{_INDEX_STATIC_}/moban/assets/img/apple-icon.png">
    <link rel="icon" type="image/png" href="{_INDEX_STATIC_}/moban/assets/img/favicon.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>成果审核 | {$system_name}</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
        name='viewport' />
    <link href="{_INDEX_STATIC_}/moban/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="{_INDEX_STATIC_}/moban/assets/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
    <link href="{_INDEX_STATIC_}/moban/assets/css/font-awesome.min.css" rel="stylesheet" />
</head>

<body class="index-page sidebar-collapse">

    <!-- 引入导航栏 -->
    {include file='public/header'}

    <div class="container" style="min-height: 490px;">
        <!-- 个人信息 -->
        <div class="row">
            <div class="col-md-12">
                <h3>成果审核详情
                    <span style="font-size: 16px;color: red;">{$classify_info.name}</span>
                </h3>
            </div>
            <div class="col-md-12">
                <button class="btn btn-danger" onclick="back('{$uid}')">返回上一页</button>
            </div>
        </div>
        <div class="row">

            <table class="table table-hover">
                <thead>
                    <tr>
                        <th style='vertical-align: middle;text-align: center;'>#</th>
                        <th style='vertical-align: middle;text-align: center;'>姓名</th>
                        <th style='vertical-align: middle;text-align: center;'>提交审核的数量</th>
                        <th style='vertical-align: middle;text-align: center;'>操作</th>
                    </tr>
                <tbody>
                    {volist name="user_list" id="row"}
                    <tr>
                        <td style='vertical-align: middle;text-align: center;'>{$row.id}</td>
                        <td style='vertical-align: middle;text-align: center;'>{$row.name}</td>
                        <td style='vertical-align: middle;text-align: center;'>{$row.count}</td>
                        <td style='vertical-align: middle;text-align: center;'>
                            <button class="btn btn-success btn-round" onclick="audit('{$cid}','{$row.id}')">审核</button>
                            <button class="btn btn-success btn-round"
                                onclick="audit_details('{$cid}','{$row.id}')">审核详情</button>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
                </thead>
            </table>

        </div>
        <div class="row">
            <!-- 加载分页页面 -->
            {include file='public/page'}
        </div>
    </div>

    <!-- 引入页脚 -->
    {include file='public/footer'}

    <script>

        // 详情页面
        function details(cid) {
            redirect_url("{:url('achievement_audit/details')}?cid=" + cid);
        }

        // 审核
        function audit(cid, uid) {
            redirect_url("{:url('achievement_audit/audit')}?cid=" + cid + "&uid=" + uid);
        }

        // 返回上一页
        function back(uid) {
            redirect_url("{:url('achievement_audit/index')}?uid=" + uid);
        }

        // 审核详情页面
        function audit_details(cid, uid) {
            redirect_url("{:url('achievement_audit/audit_details')}?cid=" + cid + "&uid=" + uid);
        }

        // 重定向
        function redirect_url(url) {
            window.location.href = url;
        }
    </script>

</body>

</html>